import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
const path =  require('path')
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  css: {
    // css预处理器
    preprocessorOptions: {
      less: {
        charset: false,
        additionalData: '@import "./src/styles/variables.less";',
      },
    },
  },
  resolve: {
    // 别名
    alias: {
      "@": path.join(__dirname, "./src"),
    },
    // extensions: [".ts", ".js"],
  },
})
